public class two {
    public static void main(String[] args) {
        int num = 0;
        for( int i = 0 ; i <= 100; i ++){
            if( i % 2 != 0) {
                num = num + i;
            }
        }
        System.out.println("1+3+5+7+……+99 的和值为"+num);
    }
}
